package com.camemax.server.config;

import org.springframework.amqp.core.FanoutExchange;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

// ************************
// * @Date: 2021/6/21
// * @Author: Camemax
// * @Description: 订单服务 - 生成Rabbitmq环境信息（交换机、队列以及绑定关系）
// ************************
@Configuration
public class OrdersRabbitmqConfiguration {
    @Bean
    public FanoutExchange orderExchange(){
        return new FanoutExchange("orders-fanout-exchange", true, false);
    }
}
